<!DOCTYPE html SYSTEM "http://www.thymeleaf.org/dtd/xhtml1-strict-thymeleaf-4.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
xmlns:th="http://www.thymeleaf.org">
    <meta http-equiv=content-type content="text/html; charset=UTF-8">
    <head><title>OSS表单上传</title></head>
    <body>
        <form action="http://ap-hb3.oss-cn-zhangjiakou.aliyuncs.com" method="post" enctype="multipart/form-data">
            <input type="hidden" name="OSSAccessKeyId" th:attr="value=${accessKeyId}">
            <input type="hidden" name="policy"  th:attr="value=${policy}">
            <input type="hidden" name="Signature"  th:attr="value=${signature}">
            <input type="hidden" name="key"  th:attr="value=${ossKey}">
            <input type="hidden" name="success_action_redirect" value="http://localhost:8080/upload/success">
            <input type="hidden" name="success_action_status" value="201">
            <input name="file" type="file" id="file" required>
            <input name="submit" value="Upload" type="submit">
        </form>
    </body>
</html>